package my.merborn.ordersysteam105.models.services;

import my.merborn.ordersysteam105.models.pojo.User;
import my.merborn.ordersysteam105.models.pojo.enums.Power;

import java.util.List;

public interface UserService {

    //select
    public List<User> getALL();
    public User getUserById(Integer uid);

    //insert
    public boolean registUser(User user);

    //update
    public boolean updateUser(User user);

    //delete
    public int deleteUserById(Integer uid);

    //service
    public boolean userIsPayed(User user);
    public Power getUserPower(User User);
    public boolean loginCheck(String userName, String pwd);
    public boolean loginCheck(User user);

}
